package com.example.d15_homework.homework01;

/**
 * 经理类
 */
public class Manager extends People {
    private double bonus; // 奖金

    public Manager(String name, String jobNumber, double salary, double bonus) {
        super(name, jobNumber, salary);
        this.bonus = bonus;
    }

    @Override
    public void work() {
        System.out.println("经理" + getName() + "正在工作...");
    }

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }
}
